home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
LANG
/
C
/
LIB
/
UNIXLIB37B
/
!UnixLib37
/
src
/
stdio
/
c
/
fputs
< prev
next >
Wrap
Text File
|
1996-11-09
|
824b
|
38 lines
/****************************************************************************
*
* $Source: /unixb/home/unixlib/source/unixlib37/src/stdio/c/RCS/fputs,v $
* $Date: 1996/04/19 21:32:42 $
* $Revision: 1.1 $
* $State: Rel $
* $Author: simon $
*
* $Log: fputs,v $
* Revision 1.1 1996/04/19 21:32:42 simon
* Initial revision
*
***************************************************************************/
static const char rcs_id[] = "$Id: fputs,v 1.1 1996/04/19 21:32:42 simon Rel $";
#include <stdio.h>
__STDIOLIB__
int
fputs (register const char *s, register FILE * f)
{
register int c = 0;
if (!s)
s = (const char *) __null;
while (c = *s++)
if ((c = putc (c, f)) < 0)
break;
if (f->o_ptr > f->o_base && !!(f->flag & _IOLBF) && __flsbuf (-1, f) < 0)
return (-1);
return (c);
}